package com.yifan.arrayList;



/**
 * @author ：zhanglei
 * @date ：Created in 2020-07-02 9:35
 * @description：arrayList集合demo
 */
public class ArrayListDemo {

    public static void main(String[] args) {

        ArrayList list = new ArrayList();
        list.add("1");
        list.add("2");
        System.out.println(list);
        list.add(1,"3");
        System.out.println(list);
        //list.remove("1");
        System.out.println(list);
        list.addAfter(1,0);
        System.out.println(list);
    }

}
